function uploadPic() {
    $(document).ready(function () {
        $("#up_img").change(function () {
            var fil = this.files;
            for (var i = 0; i < fil.length; i++) {
                reads(fil[i]);
            }
        });
    });
    function reads(fil){
        var reader = new FileReader();
        reader.readAsDataURL(fil);
        reader.onload = function() {
            $(".problemPic").html("<img class='upImg' src='"+reader.result+"'>");
        };
    }
}
uploadPic();